/**
 * Created by ztt on 2017/11/17.
 */
var express=require('express');
var app=express();
app.get('/',function (req,res) {
    res.send('Hello Word');
});
app.get('/user',function (req,res) {
   res.send('用户信息：');
});
var server  = app.listen(3000,function () {
    var host=server.address().address;
    var port=server.address().port;
    console.log("应用实例，访问地址为 http://%s:%s", host, port)
})